/**
 * 动态路由 菜单栏路由
 * 用来放置有权限（roles 属性）的路由
 * 必须带有 name 属性
 */
const asyncRoutes = [
    {
        path: "/main",
        name: "首页",  //菜单栏名称
        component: () => import('@/views/home/Home.vue'),
        meta: {
            needLogin: false, // 不需要登录
            title: "首页", //标题
            icon: "House",  //图标
        },
        children: [],
    },

    {
        path: "/system",
        name: "系统",
        //component: () => import('@/views/user/user.vue'),
        meta: {
            needLogin: false, // 不需要登录
            title: "系统",
            icon: "Notebook",  //图标
        },
        children: [
            {
                path: "/user",
                name: "用户",
                component: () => import('@/views/user/user.vue'),
                meta: {
                    needLogin: false, // 不需要登录
                    title: "用户",
                    icon: "Avatar",  //图标
                },
                children: [],
            }
        ]
    },

    {
        path: "/about",
        name: "关于",
        component: () => import('@/views/about/About.vue'),
        meta: {
            needLogin: false, // 不需要登录
            title: "关于",
            icon: "HelpFilled",  //图标
        },
        children: [],
    },
]


export {asyncRoutes}